﻿using UnityEngine;
using System.Collections;

public class ThroughWall : MonoBehaviour {
	/*[SerializeField] Collider wallCollider;
	void OnTriggerEnter(Collider other){
		if (other.gameObject == StaticVarFunc.Player) {
			wallCollider.enabled = false;
		}
	}
	void OnTriggerExit(Collider other){
		if (other.gameObject == StaticVarFunc.Player) {
			wallCollider.enabled = true;
		}
	}
	void OnDestroy(){
		wallCollider.enabled = true;
	}*/
	public void hideCollider(){
		Collider col = GetComponent<Collider> ();
		if (col != null) {
			col.enabled = false;
		}
	}
	public void enableCollider(){
		Collider col = GetComponent<Collider> ();
		if (col != null) {
			col.enabled = true;
		}
	}
}
